(function($$){//原始頁面使用jquery 1.2.2... 
	var speed = 10;
	function play(options)
	{
		var me = this;
		if (!options._timer)
		{
			options._timer = setInterval(function(){move.call(me, options)}, speed);
		}
	}
	function stop(options)
	{
		clearInterval(options._timer);
		options._timer = null;
	}
	function move(options)
	{
		var left = parseFloat(this.css('left'),10);
		if (left < options.targetX)
		{
			this.css('left', options.startX+'px');
		}
		else
		{
			this.css('left', (left - options.step) + 'px');
		}
	}
	$$.fn.Marquee = function(duration){
		var me = this.css({
			'overflow':'hidden',
			'position':'relative'
		});
		me.height(me.height());
		var startX = me.width();
		var inner = $$('<div></div>').html(me.html()).css({
			'position':'absolute',
			'top':0,
			'left':startX,
			'white-space':'nowrap'
		});
		me.empty();
		me.append(inner);
		var options = {
			startX : startX,
			targetX : -inner.width()
		};
		options.step = (options.startX - options.targetX)/parseInt(duration/speed, 10);
		me.hover(
			function(){stop.call(inner, options);},
			function(){play.call(inner, options);}
		);
		play.call(inner, options);
	}
})(self.jQuery);